package com.tomorrow.runner.map;

/**
 * Created by tomorrow on 16-5-6.
 */
public class LatLngPoint {
    public double lat;
    public double lng;
    public LatLngPoint(){
        lat = 0;
        lng = 0;
    }

    public LatLngPoint(double lat, double lng){
        this.lat = lat;
        this.lng = lng;
    }

    @Override
    public String toString() {
        return "lat="+lat+"|lng="+lng;
    }

    @Override
    public boolean equals(Object o) {
        if (o instanceof LatLngPoint){
            LatLngPoint p = (LatLngPoint) o;
            return  (p.lat == lat && p.lng == lng);
        }
        return false;
    }
}
